<div id="map_canvas" style="width:800px; height:500px; "></div>
<div class="cl list-object">
	<div class="content_holder fl">
		<div id="content">
			<div class="main_object">
				<div class="object br5">
					<div class="object-price"><span><?php echo Yii::t("main", "from")?></span> <?php echo CHtml::encode($object->price); ?> €</div>
					<div class="object-img">
						<a href="<?php echo Yii::app()->createUrl('cataloge/view', array('id'=>$object->id)); ?>" title="<?php echo CHtml::encode($object->name); ?>">
							<?php if($object->mainImage){ ?>
								<?php echo $this->material_image($object->mainImage->id, $object->mainImage->name, '205', 'images/'.$object->user_id.'/'.$object->id); ?>
							<?php }else{ ?>
								<?php echo $this->material_image(0, 'noimage.gif', '205', ''); ?>
							<?php } ?>
						</a>
					</div>
					<h3 class="object-name">
						<a href="<?php echo Yii::app()->createUrl('cataloge/view', array('id'=>$object->id)); ?>" title="<?php echo CHtml::encode($object->name); ?>" class=""><?php echo CHtml::encode($object->name); ?></a>
					</h3>
					<?php if(isset($object->roomType)):?>
					<p><?php echo CHtml::encode($object->roomType->name); ?></p>
					<p class="descr"><?php echo CHtml::encode($object->description); ?></p>
					
					<div class="author">
						<a href="<?php echo Yii::app()->createUrl('users/view', array('id'=>$object->user->id));?>" class="photo">
							<?php echo $this->material_image($object->user->id, $object->user->avatar, '38', 'images/' . $object->user->id); ?>
						</a>
						<div class="author_l">
							<p><?php echo $object->user->full_name; ?></p>
							<p><span>10 Review</span></p>
						</div>
					</div>
					<?php endif;?>
					<?php $address = $object->country->name.', '.$object->city->name.', '.$object->street.' '.$object->house .'/'.$object->apartment;?>
					<a href="#" class="onmap showMap" title="<?php echo $address?>"><?php echo $address?></a>
				</div>
			</div>
			<div class="clear"></div>
			<div class="booking_btn br5">
				<a href="<?php echo $object->id; ?>" id="booking_all"><?php echo Yii::t('main', 'View All'); ?></a>
				<a href="<?php echo $object->id; ?>" id="booking_new"><?php echo Yii::t('main', 'View New'); ?></a>
				<a href="<?php echo $object->id; ?>" id="booking_old"><?php echo Yii::t('main', 'View Old'); ?></a>
			</div>
			<div id="booking_list">
				<?php $this->renderPartial('_bookingList', array('bookings'=>$bookings)) ?>
			</div>
		</div>
	</div>
	<!-- Right col -->
	<div id="right" class="br5">
		<div class="order_form">
			<!-- right menu Cabinet -->
			<?php $this->renderPartial('../users/_menu_r_Cabinet'); ?>
		</div>
	</div>
</div>
